package com.bringway.p2p.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bringway.p2p.dao.YzmDao;
import com.bringway.p2p.service.YzmService;
@Service
public class YzmServiceImpl implements YzmService {
	@Autowired
	private YzmDao yzmDao;

	@Override
	public boolean insertYzm(String mobile, String yzm, String yzmType) {
		return yzmDao.insertYzm(mobile, yzm, yzmType);
	}

	@Override
	public boolean isEffectiveYzm(String mobile, String yzm, String yzmType) {
		return yzmDao.isEffectiveYzm(mobile, yzm, yzmType);
	}

	@Override
	public boolean verifyYzm(String mobile, String yzm, String yzmType) {
		return yzmDao.verifyYzm(mobile, yzm, yzmType);
	}

	@Override
	public boolean getYzmCount(String mobile, String yzmType) {
		return yzmDao.getYzmCount(mobile, yzmType);
	}

	@Override
	public String getRandNum(int charCount) {
		return yzmDao.getRandNum(charCount);
	}

	@Override
	public String getSjhmByGyh(String gyh) {
		return yzmDao.getSjhmByGyh(gyh);
	}

}
